package com.gxa.ssm251.mapper;

import com.gxa.ssm251.pojo.Admin;
import com.gxa.ssm251.pojo.City;

import java.util.Date;
import java.util.List;

public interface AdminMapper {

   List<Admin> selectAll();
   Admin selectByName(String name)  ;
   Integer insert(Admin admin) ;
   Integer updateTime(Admin admin);
   Integer insertAdmin(Admin admin);
   Integer deleteByAdminId(Integer deleteById);


   Admin selectById(Integer id);

   Integer updateStatus(Admin admin1);

   Integer updateAdmin(Admin admin);

   Integer insertAdminLimit(Integer id, Integer valueOf);

    List selectLimits(Integer id);

   List selectAllCity();

   Integer deleteByCityId(Integer id);

   Integer insertCity(City city);

   City selectByCityName(String name);

    Admin selectByEmail(String email);

   Integer updatepwd(String email, String pwd,String salt);
}
